<?php session_start();

$c=$_GET["c"];

$username = "root";
$pass = "";
$con = mysql_connect("localhost",$username,$pass);
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

@mysql_select_db("progin_171_13509008", $con);

$query = "select count(id_content) as jum from like_content where id_content = ".$c." and status = 1";
$hasil = mysql_query($query) or die("Query failed with error: ".mysql_error());

global $count;
 
while($row1=  mysql_fetch_array($hasil))
{
   $count = $row1['jum'];
}
//$count = mysql_result($hasil,0,0);
//echo $count;
echo $count;
mysql_close();
?>
